Tables [dbo].[EventRegistrationAnswer]
Properties
PropertyValue
Created10:31:20 AM Tuesday, March 02, 2010
Last Modified11:40:02 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_EventRegistrationAnswer: EventCode\RegistrantID\QuestionIDForeign Keys FK_EventRegistrantAnswer_EventRegistrant: [dbo].[EventRegistrant].RegistrantID\EventCodeRegistrantIDvarchar(10)10
No
Cluster Primary Key PK_EventRegistrationAnswer: EventCode\RegistrantID\QuestionIDForeign Keys FK_EventRegistrantAnswer_EventRegistrant: [dbo].[EventRegistrant].RegistrantID\EventCodeEventCodevarchar(15)15
No
Cluster Primary Key PK_EventRegistrationAnswer: EventCode\RegistrantID\QuestionIDForeign Keys FK_EventRegistrationAnswer_EventSetupQuestion: [dbo].[EventSetupQuestion].QuestionIDQuestionIDint4
No
Answervarchar(512)512
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_EventRegistrationAnswer: EventCode\RegistrantID\QuestionIDPK_EventRegistrationAnswerEventCode, RegistrantID, QuestionID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_EventRegistrantAnswer_EventRegistrantCascadeRegistrantID->[dbo].[EventRegistrant].[RegistrantID]
EventCode->[dbo].[EventRegistrant].[EventCode]
FK_EventRegistrationAnswer_EventSetupQuestionQuestionID->[dbo].[EventSetupQuestion].[EventSetupQuestionID]
SQL Script
CREATE TABLE [dbo].[EventRegistrationAnswer]
(
[RegistrantID] [varchar] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[EventCode] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[QuestionID] [int] NOT NULL,
[Answer] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[EventRegistrationAnswer] ADD CONSTRAINT [PK_EventRegistrationAnswer] PRIMARY KEY CLUSTERED ([EventCode], [RegistrantID], [QuestionID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[EventRegistrationAnswer] ADD CONSTRAINT [FK_EventRegistrantAnswer_EventRegistrant] FOREIGN KEY ([RegistrantID], [EventCode]) REFERENCES [dbo].[EventRegistrant] ([RegistrantID], [EventCode]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[EventRegistrationAnswer] ADD CONSTRAINT [FK_EventRegistrationAnswer_EventSetupQuestion] FOREIGN KEY ([QuestionID]) REFERENCES [dbo].[EventSetupQuestion] ([EventSetupQuestionID])
GO
Uses
Used By